package com.soccertgc.flex.ui.windows
{
	import flash.events.Event;

	public class WindowEvent extends Event
	{
		
		// -------------------------------------------------------------------------------
		// CONSTANTS
		// -------------------------------------------------------------------------------	
		
		public static const WINDOW_CONFIRM:String						= "windowConfirm";
		public static const WINDOW_CANCEL:String						= "windowCancel";
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		protected var _window:Window;
		protected var _data:Object;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		public function WindowEvent(event_type:String, event_window:Window, event_data:Object = null)
		{
			// Ancestor constructor
			super(event_type);
			// Init
			_window = event_window;
			_data = event_data;
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------

		public function get window():Window
		{
			return _window;
		}
		
		public function get data():Object
		{
			return _data;
		}

	}
}